package com.community.demo.dao;

import com.community.demo.domain.Permission;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PermissionRepository extends JpaRepository<Permission, Long> {

//    @Query("select p from Permission p where")
//    List<Permission> findAllByRole(Role role);

    List<Permission> findAllByUrl(String url);
}